import time
from config.config import DRIVER_PATH,DATAS_PATH,REPORT_PATH
from BeautifulReport import BeautifulReport
from time import strftime
import unittest
<<<<<<< HEAD
test_dir="add_department"
suite=unittest.defaultTestLoader.discover("add_department",pattern='test_*.py')
BeautifulReport(suite).report(
    description=u'自动化测试报告',
    log_path=REPORT_PATH,
    filename=time.strftime("%Y-%m-%d %H_%M_%S")
)

=======
test_dir="./task"
suite=unittest.defaultTestLoader.discover("./task",pattern='test_*.py')
BeautifulReport(suite).report(
    description=u'线索板块自动化测试报告',
    log_path='../report/',
    filename=time.strftime("task-%Y-%m-%d %H_%M_%S")
)
>>>>>>> ffa01048eb9f437ad1c34acaf41f5053bd6cf6a2
